.mtop30(ng-init='loginPage=true')
	.pull-right.loginPanel.clearfix(gf-cleaner)
		.yui3-g(ng-controller='App.LoginTypeCtrl')
			.yui3-u-1-2.tabheader(ng-class='{active: logintype==1}', ng-click='$parent.logintype=1') 广发通
			.yui3-u-1-2.tabheader(ng-class='{active: logintype==2}', ng-click='$parent.logintype=2', style='background-position: 35px 20px')
				.vl.pull-left
				| 交易用户
		.loginfm(ng-switch='logintype')
			iframe.hideiframe(src='blank.html', name='loginiframe')
			form(name='loginform', 
						ng-switch-when='1', 
						action='{{form.login_uri}}',
						ng-controller='App.LoginCtrl',
						target='loginiframe',
						method='POST',
						ng-init='__tabindex=0')
				input(type='hidden', name='error_url', gf-value="{{path}}")
				input(type='hidden', name='login_type', value='portal')
				.textfield(ng-class='{blurbd: __tabindex==1}')
					.ib.uname-icon(ng-class='{"focus-cls": __tabindex==1}')
					label(for='newlogin_username', ng-hide='username.length') 手机号/邮箱/用户名
					input(gf-focus='__tabindex=1;', gf-blur='__tabindex=0', type='text', id='newlogin_username', name='user_id', ng-model='username', required, tabindex=1)
				.textfield(ng-class='{blurbd: __tabindex==2}')
					.ib.upass-icon(ng-class='{"focus-cls": __tabindex==2}')
					label(for='newlogin_password', ng-hide='password.length') 密码
					input(gf-focus='__tabindex=2;', gf-blur='__tabindex=0', type='password', id='newlogin_password', name='password', ng-model='password', required, tabindex=2)
				div
					.pull-right(style='*padding-top: 10px;')
						img(ng-src='{{captcha_uri}}', alt='验证码', height=34, width=80)
						br
						a(href='#',onclick="return false;", ng-click='refresh()').kbqc 看不清楚
					.textfield(style='width: 200px;', ng-class='{blurbd: __tabindex==3}')
						.ib.vcard-icon(ng-class='{"focus-cls": __tabindex==3}')
						label(style='width: 150px;', for='newlogin_verify', ng-hide='verify.length') 验证码
						input(gf-focus='__tabindex=3;', gf-blur='__tabindex=0', style='width: 150px;', type='text', id='newlogin_verify', name='ticket', ng-model='verify', maxlength=4, required, tabindex=3)
				
				.nc.b.pad10(ng-show='error')
					img(src='img/alert2.gif')
					span.vam.mleft5(ng-bind='error')

				div(ng-class='{mtop30: !error}')
					input(type='submit', value='登 录', ng-disabled='!loginform.$valid', tabindex=4).login-button
						a(href='javascript:void(0);').login-button

				.mtop25
					a(href='#/pwdreset').mrem2.link.kbqc 忘记密码？
					span.mlem 您还不是广发通用户？
					a.link(href='#/register').kbqc 立即注册>>
			
			form(name='loginform', 
						ng-switch-when='2', 
						action='{{form.login_uri}}',
						ng-controller='App.LoginCtrl',
						gf-submit='beforeSubmit',
						target='loginiframe',
						method='POST',
						ng-init='__tabindex=0')
				input(type='hidden', name='login_type', value='trade')
				input(type='hidden', name='error_url', gf-value='{{path}}')
				.textfield(ng-class='{blurbd: __tabindex==1}')
					.ib.uname-icon(ng-class='{"focus-cls": __tabindex==1}')
					label(for='newlogin_username', ng-hide='username.length') 客户编号
					input(gf-focus='__tabindex=1;', gf-blur='__tabindex=0', type='text', id='newlogin_username', name='user_id', ng-model='username', required, tabindex=1)
				.textfield(ng-class='{blurbd: __tabindex==2}')
					.ib.upass-icon(ng-class='{"focus-cls": __tabindex==2}')
					input(type="hidden", name="password", id="pwd")
					input(type="hidden", name="mac", id="mac")
					input(type="hidden", name="disknum", id="disknum")
					
					span(gf-sec-pwd='getpwd', width=240, height=48, gf-focus='__tabindex=2;', gf-blur='__tabindex=0', tabindex=2)
				div
					.pull-right
						img(ng-src='{{captcha_uri}}', alt='验证码', height=34, width=80)
						br
						a.kbqc(href='#',onclick="return false;", ng-click='refresh()') 看不清楚
					.textfield(style='width: 200px;', ng-class='{blurbd: __tabindex==3}')
						.ib.vcard-icon(ng-class='{"focus-cls": __tabindex==3}')
						label(style='width: 150px;', for='newlogin_verify', ng-hide='verify.length') 验证码
						input(gf-focus='__tabindex=3;', gf-blur='__tabindex=0', style='width: 150px;', type='text', id='newlogin_verify', name='ticket', ng-model='verify', maxlength=4, required, tabindex=3)

				.nc.b.pad10(ng-show='error')
					img(src='img/alert2.gif')
					span.vam.mleft5(ng-bind='error')

				div(ng-class='{mtop30: !error}')
					input(type='submit', ng-click='submit()', value='登 录', ng-disabled='!loginform.$valid', tabindex=4).login-button
						a(href='javascript:void(0);').login-button

				.mtop25
					a(href='#/pwdreset').mrem2.link.kbqc 忘记密码？
					span.mlem 您还不是广发通用户？
					a.link.kbqc(href='#/register') 立即注册>>

	.loginAdPanel
		a(href='http://www.gf.com.cn/yykh/yuyue.jsp').yysmkh
		a(href='http://www.gf.com.cn/yykh/index.jsp').link.gdkhfs 更多开户方式>>

.mtop30.mbottom15
	img(src='img/guide.jpg')
